/**
 * 
 */
package it.ap.sa.core.dao.datasource;

import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;

import org.apache.commons.dbcp.BasicDataSource;

/**
 * @author Alessandro Paolillo
 */
public class ExtendBasicDataSource extends BasicDataSource implements ExtendDataSource {

	@Override
	public Logger getParentLogger() throws SQLFeatureNotSupportedException {
		return null;
	}

	@Override
	public String getTcpKeepAlive() {
		return super.connectionProperties.getProperty("tcpKeepAlive");
	}

	@Override
	public void setTcpKeepAlive(String tcpKeepAlive) {
		super.addConnectionProperty("tcpKeepAlive", String.valueOf(tcpKeepAlive));
	}
}
